<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%@ taglib prefix="c" uri="http://www.springframework.org/tags/form" %>

<div class="easyui-panel" data-options="doSize:false,layoutH:47,border:false" style="margin:5px">
    <form method="post" action="/floor/UiFloorPage@update.page" class="pageForm">
        <div class="ui-formContent">
            <p>
                <label style="width:130px;text-align:right">楼层标题：</label>
                <w:text bind="bean.title" style="width:300px;" styleClass="easyui-validatebox" dataOptions="required:true"/>
            </p>
            <p>
                <label style="width:130px;text-align:right">楼层颜色：</label>
                <w:text bind="bean.color" style="width:300px;" styleClass="easyui-validatebox" dataOptions="required:true"/>
                 <p style="width:330px;text-align:right;color: red;height: 12px">注:颜色填写格式如"#999999"</p>
            </p>
            <p>
                <label style="width:130px;text-align:right">使用平台：</label>
                <w:radio bind="bean.platform" value="WE" text="微商城" />
                <w:radio bind="bean.platform" value="PC" text="PC端" />
            </p>
            <p>
                <label style="width:130px;text-align:right">状态：</label>
                <select name="bean.state">
                    <w:option bind="bean.state" value="AVAILABLE">展示</w:option>
                    <w:option bind="bean.state" value="UNAVAILABLE">隐藏</w:option>
                </select>
            </p>
            <p>
                <label style="width:130px;text-align:right">排序：</label>
                <w:text bind="bean.sort_value" style="width:300px;" styleClass="easyui-validatebox" dataOptions="required:true"/>
            </p>

        </div>
    </form>
</div>
<div class="ui-buttonBar">
    <a href="javascript:;" class="easyui-linkbutton marginR16" iconCls="icon_save" onclick="uifloorAdd();">保 存</a>
    <a href="javascript:;" class="easyui-linkbutton" iconCls="icon_cancel" onclick="$w.closeCurrWin()">取 消</a>
</div>

<script>
    function uifloorAdd() {
        $w.doWinForm();
    }
</script>